Skip to content

Fix metadata values and separators display#5441

Merged
tdonohue merged 2 commits intoDSpace:mainfrom
LA-Referencia-Lyrasis-Project:fix-metadata-values-and-separators-display
Apr 14, 2026
Merged

Fix metadata values and separators display#5441
tdonohue merged 2 commits intoDSpace:mainfrom
LA-Referencia-Lyrasis-Project:fix-metadata-values-and-separators-display

Conversation

@jesielviana
Copy link
Copy Markdown
Contributor

References

Description

Removes unnecessary layout classes from the metadata field wrapper component to simplify the structure and avoid unintended styling behavior.

Instructions for Reviewers

This PR removes redundant Bootstrap flex classes that were not required and could interfere with layout rendering.

List of changes in this PR:

  • Removed d-flex and flex-column classes from <div #content class="simple-view-element-body"> in metadata-field-wrapper.component.html
  • Ensured no visual regressions in metadata value display and separators

How to verify:

Checklist

This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!

  • My PR is created against the main branch of code (unless it is a backport or is fixing an issue specific to an older branch).
  • My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
  • My PR passes ESLint validation using npm run lint
  • My PR doesn't introduce circular dependencies (verified via npm run check-circ-deps)
  • My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
  • My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
  • My PR aligns with Accessibility guidelines if it makes changes to the user interface.
  • My PR uses i18n (internationalization) keys instead of hardcoded English text, to allow for translations.
  • My PR includes details on how to test it. I've provided clear instructions to reviewers on how to successfully test this fix or feature.
  • If my PR includes new libraries/dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
  • If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself.
  • If my PR fixes an issue ticket, I've linked them together.

Copilot AI review requested due to automatic review settings April 8, 2026 13:28
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the inline display of metadata values/separators (e.g., Keywords) by removing unnecessary Bootstrap flex layout classes from the metadata field wrapper, aligning behavior with pre-DSpace 10 rendering and addressing issue #5440.

Changes:

  • Removed d-flex flex-column from the metadata field wrapper body to prevent values/separators from being forced onto separate lines.
  • Minor template formatting adjustments in metadata-field-wrapper.component.html.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<div class="simple-view-element" [class.d-none]="hideIfNoTextContent && content.textContent.trim().length === 0">
@if (label) {
<h2 class="simple-view-element-header">{{ label }}</h2>
<h2 class="simple-view-element-header">{{ label }}</h2>
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The <h2> inside the @if (label) block is not indented under the block, which is inconsistent with the indentation used for @if blocks elsewhere (e.g. ds-select.component.html). Consider indenting the <h2> (and matching closing brace) to keep template formatting consistent and easier to read.

Suggested change
<h2 class="simple-view-element-header">{{ label }}</h2>
<h2 class="simple-view-element-header">{{ label }}</h2>

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jesielviana : It looks like copilot gave you a good review here. You've accidentally removed the indentation of this <h2> tag, which makes the code less readable. Could you restore that indentation please?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that. I’ve restored the indentation.

@lgeggleston lgeggleston added bug 1 APPROVAL pull request only requires a single approval to merge component: Item (Archived) Item display or editing ux User Experience related works testathon Reported by a tester during Community Testathon labels Apr 8, 2026
@lgeggleston lgeggleston moved this to 🙋 Needs Reviewers Assigned in DSpace 10.0 Release Apr 8, 2026
@tdonohue tdonohue added this to the 10.0 milestone Apr 14, 2026
Copy link
Copy Markdown
Member

@tdonohue tdonohue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks @jesielviana ! I tested this and verified this fixes the bug

I also verified this bug only impacts the main branch (i.e. not reproducible on 9.x)

@github-project-automation github-project-automation bot moved this from 🙋 Needs Reviewers Assigned to 👍 Reviewer Approved in DSpace 10.0 Release Apr 14, 2026
@tdonohue tdonohue merged commit f93c623 into DSpace:main Apr 14, 2026
18 of 19 checks passed
@github-project-automation github-project-automation bot moved this from 👍 Reviewer Approved to ✅ Done in DSpace 10.0 Release Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 APPROVAL pull request only requires a single approval to merge bug component: Item (Archived) Item display or editing testathon Reported by a tester during Community Testathon ux User Experience related works

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Both metadata values and separators appear on separate lines (see: item's keywords field)

4 participants